package com.google.zxing.aztec.encoder;

import com.google.zxing.common.BitArray;

final class BinaryShiftToken extends Token
{
  private final short binaryShiftByteCount;
  private final short binaryShiftStart;

  BinaryShiftToken(Token paramToken, int paramInt1, int paramInt2)
  {
    super(paramToken);
    this.binaryShiftStart = ((short)paramInt1);
    this.binaryShiftByteCount = ((short)paramInt2);
  }

  public void appendTo(BitArray paramBitArray, byte[] paramArrayOfByte)
  {
    int i = 0;
    if (i < this.binaryShiftByteCount)
    {
      if ((i == 0) || ((i == 31) && (this.binaryShiftByteCount <= 62)))
      {
        paramBitArray.appendBits(31, 5);
        if (this.binaryShiftByteCount <= 62)
          break label78;
        paramBitArray.appendBits(-31 + this.binaryShiftByteCount, 16);
      }
      while (true)
      {
        paramBitArray.appendBits(paramArrayOfByte[(i + this.binaryShiftStart)], 8);
        i++;
        break;
        label78: if (i == 0)
          paramBitArray.appendBits(Math.min(this.binaryShiftByteCount, 31), 5);
        else
          paramBitArray.appendBits(-31 + this.binaryShiftByteCount, 5);
      }
    }
  }

  public String toString()
  {
    return "<" + this.binaryShiftStart + "::" + (-1 + (this.binaryShiftStart + this.binaryShiftByteCount)) + '>';
  }
}

/* Location:           C:\Users\user\Desktop\dd28_pcdd720\classes_dex2jar.jar
 * Qualified Name:     com.google.zxing.aztec.encoder.BinaryShiftToken
 * JD-Core Version:    0.6.2
 */